package com.bw.biz.listener;

import com.bw.biz.service.impl.TbBillServiceImpl;
import com.bw.biz.service.impl.TbOrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author: 薛志彬
 * @date: 2021.03.27
 */
@Component
@EnableScheduling
public class TimerUtil {
    @Autowired
    private TbBillServiceImpl billService;
    //定时零点查询
    //还款计划
    @Scheduled(cron = "0 00 0 * * ?")
    public void aa(){
        billService.repayPlan();
    }

}